home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FM Towns: Free Software Collection 9
/
FM Towns Free Software Collection 9.iso
/
t_os
/
tool
/
otohime
/
src
/
iothar.c
< prev
next >
Wrap
C/C++ Source or Header
|
1994-11-16
|
17KB
|
747 lines
#include <stdio.h>
#include <stdlib.h>
#include <winb.h>
#include <te.h>
#include <fntb.h>
#include <gui.h>
extern int harmDialogId ;
extern int harmOkBtnId ;
extern int harmOkchk() ;
extern int harmPlayBtnId ;
extern int harmPlay() ;
extern int harmUndoBtnId ;
extern int harmUndo() ;
extern int harmInfBtnId ;
extern int harmInf() ;
extern int harmCanBtnId ;
extern int harmCanchk() ;
extern int harmMesId[27] ;
extern int harmSubDialogId ;
extern int harmMainMixVolumeId ;
extern int harmMainMixSet() ;
extern int harmMainMixNumId ;
extern int harmSubMixVolumeId ;
extern int harmSubMixSet() ;
extern int harmSubMixNumId ;
extern int harmMulVolumeId ;
extern int harmMulSet() ;
extern int harmMulNumId ;
extern int harmCycleNumId ;
extern int harmCrossNumId ;
#define ALIGN 4
#define OFFSET(type) (sizeof(MMIPACKET) + (sizeof(type)+ALIGN-1)/ALIGN*ALIGN)
/* MMI_init 用データ */
/* ヘッダ */
MMIINIT initDataIOTHAR = { "MmiInit", 42, 0 } ;
/* harmDialogId */
static MMIPACKET d001 = { &harmDialogId,
NULL,
&MJ_DIALOGL40,
OFFSET(DIALOGL40),
MS_NONE
} ;
static DIALOGL40 d001d = { MS_BTLEFTL40 | MS_EVMOSONL40,
30, 96, 610, 384, 8, 4, 8,
MS_SRECTL40 | MS_UFRAMEL40 | MS_FRAMEL40,
NULL, 0, 0
} ;
/* harmOkBtnId */
static MMIPACKET d002 = { &harmOkBtnId,
&harmDialogId,
&MJ_DBUTTONL40,
OFFSET(DBUTTONL40),
MS_NONE
} ;
static DBUTTONL40 d002d = { MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
50, 353, 112, 376,12, 4, 8,
MS_PANELL40 | MS_FRAMEL40,
harmOkchk,
0x0000
} ;
/* harmPlayBtnId */
static MMIPACKET d003 = { &harmPlayBtnId,
&harmDialogId,
&MJ_DBUTTONL40,
OFFSET(DBUTTONL40),
MS_NONE
} ;
static DBUTTONL40 d003d = { MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
120, 353, 181, 376, 7, 4, 8,
MS_PANELL40 | MS_FRAMEL40,
harmPlay,
0x0000
} ;
/* harmUndoBtnId */
static MMIPACKET d004 = { &harmUndoBtnId,
&harmDialogId,
&MJ_DBUTTONL40,
OFFSET(DBUTTONL40),
MS_NONE
} ;
static DBUTTONL40 d004d = { MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
190, 353, 251, 376, 7, 4, 8,
MS_PANELL40 | MS_FRAMEL40,
harmUndo,
0x0000
} ;
/* harmInfBtnId */
static MMIPACKET d005 = { &harmInfBtnId,
&harmDialogId,
&MJ_DBUTTONL40,
OFFSET(DBUTTONL40),
MS_NONE
} ;
static DBUTTONL40 d005d = { MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
260, 353, 321, 376, 7, 4, 8,
MS_PANELL40 | MS_FRAMEL40,
harmInf,
0x0000
} ;
/* harmCanBtnId */
static MMIPACKET d006 = { &harmCanBtnId,
&harmDialogId,
&MJ_DBUTTONL40,
OFFSET(DBUTTONL40),
MS_NONE
} ;
static DBUTTONL40 d006d = { MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
530, 353, 591, 376,10, 4, 8,
MS_PANELL40 | MS_FRAMEL40,
harmCanchk,
0x0000
} ;
/* harmMesId[0] */
static MMIPACKET d007 = { &harmMesId[0],
&harmDialogId,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d007d = { MS_CENTERL40 | MS_DSPONLYL40,
60, 356, 103, 373, 8,15, 8,
MS_NONEL40,
"実 行",
1, 12, 12,
MS_NONEL40,
0, 0
} ;
/* harmMesId[1] */
static MMIPACKET d008 = { &harmMesId[1],
&harmDialogId,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d008d = { MS_CENTERL40 | MS_DSPONLYL40,
128, 356, 174, 373, 8,15, 8,
MS_NONEL40,
"再 生",
1, 12, 12,
MS_NONEL40,
0, 0
} ;
/* harmMesId[2] */
static MMIPACKET d009 = { &harmMesId[2],
&harmDialogId,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d009d = { MS_CENTERL40 | MS_DSPONLYL40,
196, 356, 247, 373, 8,15, 8,
MS_NONEL40,
"アンドゥ",
1, 12, 12,
MS_NONEL40,
0, 0
} ;
/* harmMesId[3] */
static MMIPACKET d010 = { &harmMesId[3],
&harmDialogId,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d010d = { MS_CENTERL40 | MS_DSPONLYL40,
265, 356, 316, 373, 8,15, 8,
MS_NONEL40,
"情 報",
1, 12, 12,
MS_NONEL40,
0, 0
} ;
/* harmMesId[4] */
static MMIPACKET d011 = { &harmMesId[4],
&harmDialogId,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d011d = { MS_CENTERL40 | MS_DSPONLYL40,
538, 356, 584, 373, 8,15, 8,
MS_NONEL40,
"取 消",
1, 12, 12,
MS_NONEL40,
0, 0
} ;
/* harmMesId[5] */
static MMIPACKET d012 = { &harmMesId[5],
&harmDialogId,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d012d = { MS_LEFTL40 | MS_DSPONLYL40,
55, 100, 160, 118, 8,15, 8,
MS_NONEL40,
"ハーモニ",
1, 12, 12,
MS_BOLDL40,
0, 0
} ;
/* harmSubDialogId */
static MMIPACKET d013 = { &harmSubDialogId,
&harmDialogId,
&MJ_DIALOGL40,
OFFSET(DIALOGL40),
MS_NONE
} ;
static DIALOGL40 d013d = { MS_BTLEFTL40 | MS_EVMOSONL40 | MS_FIXEDL40,
50, 120, 591, 347, 8, 4, 8,
MS_DFRAMEL40 | MS_FRAMEL40,
NULL, 0, 0
} ;
/* harmMainMixVolumeId */
static MMIPACKET d014 = { &harmMainMixVolumeId,
&harmSubDialogId,
&MJ_SCRLL40,
OFFSET(SCRLL40),
MS_NONE
} ;
static SCRLL40 d014d = { MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40 | MS_HORIL40,
344, 157, 503, 172, 8, 4, 7,
MS_PANELL40 | MS_FRAMEL40,
harmMainMixSet,
65, 0, 100, 8, 8,
265, 266
} ;
/* harmMainMixNumId */
static MMIPACKET d015 = { &harmMainMixNumId,
&harmSubDialogId,
&MJ_NUMBOXL40,
OFFSET(NUMBOXL40),
MS_NONE
} ;
static NUMBOXL40 d015d = { MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40 | MS_EVKEYONL40 | MS_RIGHTL40,
519, 153, 574, 176, 8, 4, 8,
MS_PANELL40 | MS_DFRAMEL40 | MS_FRAMEL40,
harmMainMixSet,
1, 12, 12,
MS_NONEL40,
0, 0,
65, 0, 100, 1, 0,
263, 264
} ;
/* harmSubMixVolumeId */
static MMIPACKET d016 = { &harmSubMixVolumeId,
&harmSubDialogId,
&MJ_SCRLL40,
OFFSET(SCRLL40),
MS_NONE
} ;
static SCRLL40 d016d = { MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40 | MS_HORIL40,
344, 191, 503, 206, 8, 4, 7,
MS_PANELL40 | MS_FRAMEL40,
harmSubMixSet,
65, 0, 100, 8, 8,
265, 266
} ;
/* harmSubMixNumId */
static MMIPACKET d017 = { &harmSubMixNumId,
&harmSubDialogId,
&MJ_NUMBOXL40,
OFFSET(NUMBOXL40),
MS_NONE
} ;
static NUMBOXL40 d017d = { MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40 | MS_EVKEYONL40 | MS_RIGHTL40,
519, 187, 574, 210, 8, 4, 8,
MS_PANELL40 | MS_DFRAMEL40 | MS_FRAMEL40,
harmSubMixSet,
1, 12, 12,
MS_NONEL40,
0, 0,
65, 0, 100, 1, 0,
263, 264
} ;
/* harmMulVolumeId */
static MMIPACKET d018 = { &harmMulVolumeId,
&harmSubDialogId,
&MJ_SCRLL40,
OFFSET(SCRLL40),
MS_NONE
} ;
static SCRLL40 d018d = { MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40 | MS_HORIL40,
72, 281, 503, 296, 8, 4, 7,
MS_PANELL40 | MS_FRAMEL40,
harmMulSet,
30,-160, 160, 1, 8,
265, 266
} ;
/* harmMulNumId */
static MMIPACKET d019 = { &harmMulNumId,
&harmSubDialogId,
&MJ_NUMBOXL40,
OFFSET(NUMBOXL40),
MS_NONE
} ;
static NUMBOXL40 d019d = { MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40 | MS_EVKEYONL40 | MS_RIGHTL40,
519, 277, 574, 300, 8, 4, 8,
MS_PANELL40 | MS_DFRAMEL40 | MS_FRAMEL40,
harmMulSet,
1, 12, 12,
MS_NONEL40,
0, 0,
30,-160, 160, 1, 0,
263, 264
} ;
/* harmMesId[22] */
static MMIPACKET d020 = { &harmMesId[22],
&harmSubDialogId,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d020d = { MS_CENTERL40 | MS_DSPONLYL40,
365, 132, 482, 149, 0,15, 8,
MS_NONEL40,
"ミキシングレート",
1, 12, 12,
MS_BOLDL40,
0, 0
} ;
/* harmMesId[23] */
static MMIPACKET d021 = { &harmMesId[23],
&harmSubDialogId,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d021d = { MS_CENTERL40 | MS_DSPONLYL40,
269, 157, 339, 172, 0,15, 8,
MS_NONEL40,
"オリジナル",
1, 12, 12,
MS_NONEL40,
0, 0
} ;
/* harmMesId[24] */
static MMIPACKET d022 = { &harmMesId[24],
&harmSubDialogId,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d022d = { MS_CENTERL40 | MS_DSPONLYL40,
283, 191, 321, 206, 0,15, 8,
MS_NONEL40,
"サブ",
1, 12, 12,
MS_NONEL40,
0, 0
} ;
/* harmMesId[6] */
static MMIPACKET d023 = { &harmMesId[6],
&harmSubDialogId,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d023d = { MS_CENTERL40 | MS_DSPONLYL40,
236, 223, 341, 240, 0,15, 8,
MS_NONEL40,
"サブ音声の音程",
1, 12, 12,
MS_BOLDL40,
0, 0
} ;
/* harmMesId[7] */
static MMIPACKET d024 = { &harmMesId[7],
&harmSubDialogId,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d024d = { MS_CENTERL40 | MS_DSPONLYL40,
336, 223, 417, 240, 0,15, 8,
MS_NONEL40,
"(100 = 半音)",
1, 12, 12,
MS_NONEL40,
0, 0
} ;
/* harmMesId[8] */
static MMIPACKET d025 = { &harmMesId[8],
&harmSubDialogId,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d025d = { MS_CENTERL40 | MS_DSPONLYL40,
123, 245, 160, 259, 0,15, 8,
MS_NONEL40,
"-1200",
1, 12, 12,
MS_NONEL40,
0, 0
} ;
/* harmMesId[9] */
static MMIPACKET d026 = { &harmMesId[9],
&harmSubDialogId,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d026d = { MS_CENTERL40 | MS_DSPONLYL40,
196, 245, 233, 259, 0,15, 8,
MS_NONEL40,
"-600",
1, 12, 12,
MS_NONEL40,
0, 0
} ;
/* harmMesId[10] */
static MMIPACKET d027 = { &harmMesId[10],
&harmSubDialogId,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d027d = { MS_CENTERL40 | MS_DSPONLYL40,
280, 245, 298, 259, 0,15, 8,
MS_NONEL40,
"0",
1, 12, 12,
MS_NONEL40,
0, 0
} ;
/* harmMesId[11] */
static MMIPACKET d028 = { &harmMesId[11],
&harmSubDialogId,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d028d = { MS_CENTERL40 | MS_DSPONLYL40,
348, 245, 375, 259, 0,15, 8,
MS_NONEL40,
"600",
1, 12, 12,
MS_NONEL40,
0, 0
} ;
/* harmMesId[12] */
static MMIPACKET d029 = { &harmMesId[12],
&harmSubDialogId,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d029d = { MS_CENTERL40 | MS_DSPONLYL40,
419, 245, 446, 259, 0,15, 8,
MS_NONEL40,
"1200",
1, 12, 12,
MS_NONEL40,
0, 0
} ;
/* harmMesId[13] */
static MMIPACKET d030 = { &harmMesId[13],
&harmSubDialogId,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d030d = { MS_LEFTL40 | MS_DSPONLYL40,
94, 267, 293, 281, 0,15, 8,
MS_NONEL40,
"| | | | | | | | | | | | | | | |",
1, 12, 12,
MS_NONEL40,
0, 0
} ;
/* harmMesId[14] */
static MMIPACKET d031 = { &harmMesId[14],
&harmSubDialogId,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d031d = { MS_LEFTL40 | MS_DSPONLYL40,
286, 267, 485, 281, 0,15, 8,
MS_NONEL40,
"| | | | | | | | | | | | | | | | |",
1, 12, 12,
MS_NONEL40,
0, 0
} ;
/* harmMesId[15] */
static MMIPACKET d032 = { &harmMesId[15],
&harmSubDialogId,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d032d = { MS_LEFTL40 | MS_DSPONLYL40,
142, 261, 160, 275, 0,15, 8,
MS_NONEL40,
"|",
1, 12, 12,
MS_NONEL40,
0, 0
} ;
/* harmMesId[16] */
static MMIPACKET d033 = { &harmMesId[16],
&harmSubDialogId,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d033d = { MS_LEFTL40 | MS_DSPONLYL40,
214, 261, 232, 275, 0,15, 8,
MS_NONEL40,
"|",
1, 12, 12,
MS_NONEL40,
0, 0
} ;
/* harmMesId[17] */
static MMIPACKET d034 = { &harmMesId[17],
&harmSubDialogId,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d034d = { MS_LEFTL40 | MS_DSPONLYL40,
286, 261, 305, 275, 0,15, 8,
MS_NONEL40,
"|",
1, 12, 12,
MS_NONEL40,
0, 0
} ;
/* harmMesId[18] */
static MMIPACKET d035 = { &harmMesId[18],
&harmSubDialogId,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d035d = { MS_LEFTL40 | MS_DSPONLYL40,
358, 261, 377, 275, 0,15, 8,
MS_NONEL40,
"|",
1, 12, 12,
MS_NONEL40,
0, 0
} ;
/* harmMesId[19] */
static MMIPACKET d036 = { &harmMesId[19],
&harmSubDialogId,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d036d = { MS_LEFTL40 | MS_DSPONLYL40,
430, 261, 449, 275, 0,15, 8,
MS_NONEL40,
"|",
1, 12, 12,
MS_NONEL40,
0, 0
} ;
/* harmMesId[20] */
static MMIPACKET d037 = { &harmMesId[20],
&harmSubDialogId,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d037d = { MS_CENTERL40 | MS_DSPONLYL40,
70, 315, 132, 331, 0,15, 8,
MS_NONEL40,
"分割周期",
1, 12, 12,
MS_BOLDL40,
0, 0
} ;
/* harmCycleNumId */
static MMIPACKET d038 = { &harmCycleNumId,
&harmSubDialogId,
&MJ_NUMBOXL40,
OFFSET(NUMBOXL40),
MS_NONE
} ;
static NUMBOXL40 d038d = { MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40 | MS_EVKEYONL40 | MS_RIGHTL40,
184, 312, 239, 335, 8, 4, 8,
MS_PANELL40 | MS_DFRAMEL40 | MS_FRAMEL40,
0,
1, 12, 12,
MS_NONEL40,
0, 0,
75, 1,1000, 1, 0,
263, 264
} ;
/* harmMesId[21] */
static MMIPACKET d039 = { &harmMesId[21],
&harmSubDialogId,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d039d = { MS_CENTERL40 | MS_DSPONLYL40,
128, 315, 184, 332, 8,15, 8,
MS_NONEL40,
"( msec.)",
1, 12, 12,
MS_NONEL40,
0, 0
} ;
/* harmMesId[25] */
static MMIPACKET d040 = { &harmMesId[25],
&harmSubDialogId,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d040d = { MS_CENTERL40 | MS_DSPONLYL40,
262, 315, 402, 331, 0,15, 8,
MS_NONEL40,
"クロスオーバ領域の割合",
1, 12, 12,
MS_BOLDL40,
0, 0
} ;
/* harmMesId[26] */
static MMIPACKET d041 = { &harmMesId[26],
&harmSubDialogId,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d041d = { MS_CENTERL40 | MS_DSPONLYL40,
403, 315, 448, 331, 0,15, 8,
MS_NONEL40,
"( % )",
1, 12, 12,
MS_NONEL40,
0, 0
} ;
/* harmCrossNumId */
static MMIPACKET d042 = { &harmCrossNumId,
&harmSubDialogId,
&MJ_NUMBOXL40,
OFFSET(NUMBOXL40),
MS_NONE
} ;
static NUMBOXL40 d042d = { MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40 | MS_EVKEYONL40 | MS_RIGHTL40,
448, 312, 503, 335, 8, 4, 8,
MS_PANELL40 | MS_DFRAMEL40 | MS_FRAMEL40,
0,
1, 12, 12,
MS_NONEL40,
0, 0,
100, 0, 100, 1, 0,
263, 264
} ;